package com.msmall.community.bbs.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.base.exception.DataNotFoundException;
import com.msmall.community.bbs.model.Master;


public interface MasterDao extends BaseDao<Master, Long>{

	/**
	 * 通过回复贴查找此回复贴的版区的版主信息
	 * @param threadId
	 * @return
	 * @throws DataNotFoundException
	 */
	public List<Master> findMasterByThreadId(Long threadId) throws DataNotFoundException;
	
	/**
	 * 通过主题贴查找此主题贴的版区的版主信息
	 * @param topicId
	 * @return
	 * @throws DataNotFoundException
	 */
	public List<Master> findMasterByTopicId(Long topicId) throws DataNotFoundException;
	
	public List<Master> findMasterByUserid(Long userid) throws DataNotFoundException;
	
	public List<Master> findMasterByBoardId(Long boardId) throws DataNotFoundException;
	
	public Master findMaster(Long boardId, Long userid) throws DataNotFoundException;
}
